package com.dg11185.nearshop.activity.home;

import android.os.Bundle;
import android.widget.ImageView;

import com.android.nearshop.R;
import com.dg11185.libs.imageloader.core.DisplayImageOptions;
import com.dg11185.libs.imageloader.core.ImageLoader;
import com.dg11185.nearshop.activity.SubPageActivity;
import com.dg11185.nearshop.view.ViewWithLoading;

/**
 * 活动详情界面
 * 
 * @author wanliang527
 * @date 2014-5-23
 */
public class ActivityDetailActivity extends SubPageActivity {

	private ViewWithLoading bgLoadingView;
	private ImageView detailImg;

	private DisplayImageOptions options = new DisplayImageOptions.Builder()
			.cacheOnDisc().build();

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_activity_detail);
		setSubPageTitle("活动详情");
		detailImg = (ImageView) findViewById(R.id.image_v_detail_img);
		int imageId = getIntent().getIntExtra("imageUrl", -1);
		if (imageId != -1) {
			detailImg.setImageResource(imageId);
		}
		// bgLoadingView = (ViewWithLoading) findViewById(R.id.view_loading);
		// bgLoadingView.startLoadingAnim();
		// String imageUrl = getIntent().getStringExtra("imageUrl");
		// if (imageUrl != null) {
		// ImageLoader.getInstance()
		// .displayImage(imageUrl, detailImg, options);
		// }
	}

}
